import request from "../../utils/request";

const BASE_URL = "maimao_kill/kill/killApply";
export default {


    /**
     * 秒杀商品申请报名
     * @returns {AxiosPromise}
     */
    commitApply(killApplyList) {
        return request({
            url: `${BASE_URL}/apply`,
            method: 'post',
            data: killApplyList
        })
    },
    /**
     * 秒杀商品申请报名
     * @returns {AxiosPromise}
     */
    cancel(id) {
        return request({
            url: `${BASE_URL}/cancel?id=${id}`,
            method: 'post'
        })
    },
    /**
     * 秒杀商品申请报名
     * @returns {AxiosPromise}
     */
    query(searchMap, page, size) {
        return request({
            url: `${BASE_URL}/query?page=${page}&size=${size}`,
            method: 'post',
            data: searchMap
        })
    },


}




